        <div class="pageheader notab">
            <h1 class="pagetitle">编辑收款</h1>
            <span class="pagedesc">请认真编辑各项信息</span>
            
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper lineheight21">
            <form class="stdform stdform2" method="post">
				<style>
				.form-table{ width:100%; background:#ddd;}
				.form-table th,.form-table td{ padding:15px;}
				.form-table th.title{ width:190px; background:#fcfcfc; color:#666; text-align:left;}
				.form-table th small{ font-weight:normal; color:#999; display:block;}
				.form-table td{ background:#fff; vertical-align:middle;}
				</style>
				<table class="form-table" cellspacing="1" border="0">
					<tr>
						<th class="title">标题</th>
						<td>
							<input type="text" name="title" id="title" value="{$info.title}" class="smallinput" />
						</td>
					</tr>
					<tr>
						<th class="title">原价</th>
						<td>
							<input type="text" name="market_price" id="market_price" value="{$info.market_price}" class="smallinput" />
						</td>
					</tr>
					<tr>
						<th class="title">优惠价<small>真实价格</small></th>
						<td>
							<input type="text" name="price" id="price" value="{$info.price}" class="smallinput" />
						</td>
					</tr>
					<tr>
						<th class="title">
							表单
						</th>
						<td>
							<div class="">
							<input type="checkbox" name="form_open" id="form_open" value="1" onclick="isFormOpen()" <if condition="$info['form_open'] eq 1">checked</if> /> 启用
							</div>
							<style>
								.form-table{ background:#ddd; border:0; border-spacing:1px; width:100%;}
								.form-table tr{ background:#fff;}
								.form-table th,.form-table td{ vertical-align:middle;}
								.form-value{position:relative; width:100px; height:30px; float:left;}
								.form-value a{ background:red; color:#fff; height:32px; line-height:32px; padding:0 5px; 
										position:absolute; right:0; top:0; border-radius:0 2px 2px 0; 
									}
								input.short{ width:80px !important;}
							</style>
							<table class="form-table" id="form-table">
								<thead>
									<tr>
										<th>名称</th>
										<th>提示</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<volist name="info['form']" id="vo">
									<tr>
										<td><input type="text" class="short" name="name[]" value="{$vo.name}"/></td>
										<td><input type="text" class="" name="tips[]" value="{$vo.tips}"/></td>
										<td><a href="javascript:;" onclick="delRow(this)">删除</a></td>
									</tr>
									</volist>
								</tbody>
							</table>
							<div class="" id="form-add" style=" line-height:30px; border:1px solid #ddd; border-top:none; text-align:center;">
								<a href="javascript:;" onclick="addRow()">添加一行</a>
							</div>
							<script>
							function isFormOpen(){
								if(jQuery("#form_open").is(':checked')){
									jQuery("#form-table").show();
									jQuery("#form-add").show();
								}else{
									jQuery("#form-table").hide();
									jQuery("#form-add").hide();	
								}
							}
							
							function addRow(){
								form_num = jQuery(".form-value").size();
								html = '<tr>';
								html	+= '<td><input type="text" class="short" name="form_name[]"/></td>'
										+'<td><input type="text" class="" name="form_tips[]"/></td>'
										+'<td><a href="javascript:;" onclick="delRow(this)">删除</a></td>'
									+'</tr>';
								jQuery("#form-table").append(html);
							}
							
							function delRow(obj){
								jQuery(obj).parent("td").parent("tr").remove();
							}
							
							jQuery(document).ready(function(e){
								isFormOpen();
							});
							</script>
						</td>
					</tr>
					<tr>
						<th class="title" valign="top">介绍说明</th>
						<td>
							<textarea name="body" id="body" class="longinput" style="margin: 0px; height: 400px; max-width:640px;">{$info.body}</textarea>
						</td>
					</tr>
				</table>
				
				
				
				<p class="stdformbutton">
					<button class="submit radius2">提交</button>
					<input type="reset" class="reset radius2" value="重置" />
				</p>
			</form>
			<script src="__PUBLIC__/plugins/ueditor1.4.3/ueditor.config.js"></script>
			<script src="__PUBLIC__/plugins/ueditor1.4.3/ueditor.all.min.js"></script>
			<script>
				ue = UE.getEditor('body');
				jQuery(document).ready(function(d){
					$ = jQuery;
					//调整下拉的默认选择
					$("select").each(function(index, element) {
					  $(element).find("option[value='"+$(this).attr('default')+"']").attr('selected','selected');
					});
				});
			</script>
        
        </div><!--contentwrapper-->
        